package com.jt.demo3;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class User {
    public static void main(String[] args) {
        String resource="spring.xml";
        ApplicationContext applicationContext =
                new ClassPathXmlApplicationContext(resource);
        Dog d = applicationContext.getBean(Dog.class);
        d.hello();

    }
}
